{"version":3,"file":"crm.bundle.map.js","names":["this","BX","Landing","Ui","Panel","Formsettingspanel","exports","ui_buttons","landing_ui_card_headercard","landing_ui_panel_basepresetpanel","landing_ui_field_radiobuttonfield","main_core_events","landing_ui_form_formsettingsform","ui_dialogs_messagebox","landing_ui_field_basefield","landing_loc","main_core","landing_ui_panel_formsettingspanel_content_crm_schememanager","_templateObject","fetchId","item","Type","isNil","ID","id","fetchName","NAME","name","StageField","_BaseField","babelHelpers","inherits","options","_this","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","Dom","replace","input","getInner","createClass","key","value","_this2","cache","remember","Tag","render","taggedTemplateLiteral","getCategoriesDropdown","getLayout","_this3","UI","Field","Dropdown","title","listTitle","Loc","getMessage","content","category","items","categories","map","onChange","onCategoryChange","bind","getCurrentCategory","currentCategoryId","getValue","find","String","emit","stage","setValue","preventEvent","arguments","length","undefined","BaseField","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","source","forEach","defineProperty","getOwnPropertyDescriptors","defineProperties","_classPrivateFieldInitSpec","obj","privateMap","_checkPrivateRedeclaration","set","privateCollection","has","TypeError","_schemeManager","WeakMap","CrmContent","_ContentWrapper","assertThisInitialized","writable","setEventNamespace","classPrivateFieldSet","SchemeManager","toConsumableArray","dictionary","document","schemes","addItem","getHeader","getTypesField","isDynamicAvailable","getDynamicEntitySettingsForm","getExpertSettingsForm","getOrderSettingsForm","setLastScheme","formOptions","scheme","setLastDealCategory","deal","isArrayFilled","dynamic","HeaderCard","getDuplicatesField","Radio","selector","duplicateMode","getSchemeById","isOpened","endsWith","Text","toNumber","FormSettingsForm","toggleable","opened","fields","getType1Header","level","getType2Header","getType3Header","getType4Header","getType6Header","getDynamicHeader","headerText","header","isString","setTitle","getDynamicEntitiesField","_this4","currentScheme","mainEntity","onTypeChange","BaseEvent","data","getSelectedSchemeId","_this5","hidden","_this6","toggleableType","ToggleableType","Link","_this7","setTimeout","icon","isLeadEnabled","unshift","RadioButtonField","schemeId","classPrivateFieldGet","isDefaultScheme","isInvoice","getSpecularSchemeId","isPlainObject","getDealCategoryField","_this8","getDynamicCategoriesField","_this9","concat","getDynamicSchemeById","getDuplicatesEnabledField","_this10","Checkbox","compact","duplicatesEnabled","_this11","_this$getSchemeById","getLastScheme","get","categoryId","getLastDealCategory","event","_event$getData","getData","clear","hide","expertSettingsForm","addField","onSwitchChange","dynamicScheme","show","setAdditionalValue","getAdditionalValue","getEntityChangeConfirm","MessageBox","buttons","MessageBoxButtons","OK_CANCEL","getDealCategoryChangeConfirm","getCreateOrderChangeConfirm","message","_this12","allowedEntities","entities","removedFields","presetFields","presetField","includes","entityName","getCrmFieldById","fieldName","itemTemplate","encode","messageText","field","caption","lastField","pop","join","replaceAll","entityChangeConfirm","setOkCallback","close","getOkButton","setDisabled","getCancelButton","filteredFields","skipPrepare","setCancelCallback","lastScheme","setMessage","lastDealCategory","dealStageField","crmField","dealCategoryChangeConfirm","_messageText","payment","use","createOrderMessageBox","setButtons","Button","setColor","ButtonColor","PRIMARY","setText","setNoCaps","bindEvent","button","orderSettingsSwitch","getSwitch","LIGHT","values","crmFields","reduce","acc","FIELDS","currentField","typeId","entityId","valueReducer","reducedValue","toBoolean","payer","disabledSystems","ContentWrapper","default","Content","Card","Event","Form","Dialogs","Crm"],"sources":["crm.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,QAAUF,KAAKC,GAAGC,SAAW,CAAC,EACtCF,KAAKC,GAAGC,QAAQC,GAAKH,KAAKC,GAAGC,QAAQC,IAAM,CAAC,EAC5CH,KAAKC,GAAGC,QAAQC,GAAGC,MAAQJ,KAAKC,GAAGC,QAAQC,GAAGC,OAAS,CAAC,EACxDJ,KAAKC,GAAGC,QAAQC,GAAGC,MAAMC,kBAAoBL,KAAKC,GAAGC,QAAQC,GAAGC,MAAMC,mBAAqB,CAAC,GAC3F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